/**
 * 
 */
package com.ydy.ienum;

import com.ydy.ienum.base.IErrorEnum;

/**
 * @author xuzhaojie
 *
 *         2018年11月12日 上午9:41:48
 */
public enum EnumBook implements IErrorEnum {
	DATA_NOT_FOUND(3000,"找不到book"),
	BOOK_FULL(3001,"预约人数已满"),
	BOOK_PASS_TODAY_TIME(3002,"不可预约今天已经过去的时间"),
	BOOK_PASS(3003,"不可预约过去的日期"),
	BOOK_TIME_LONG(3004,"预约未来的日期时间过长"),
	HAD_BOOK(3005,"该订单已经预约"),
	BOOK_NOT_FIT_USER(3006,"该预约不属于该用户");

	private Integer code;
	private String msg;

	private EnumBook(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	@Override
	public int getCode() {
		return code;
	}

	@Override
	public String getMsg() {
		return msg;
	}

}
